package components;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class MainWindow extends JFrame
{
	private static final long serialVersionUID = 1L;
	
	MeniBar mb;
	
	public MainWindow()
	{
	    super("DBViewer G2");
	    getContentPane().setLayout(new BorderLayout());
	    Toolkit tk = Toolkit.getDefaultToolkit();
	    Dimension dim = new Dimension(tk.getScreenSize());
	    this.setSize(dim.width/2,dim.height/2);
	    mb = new MeniBar();
	    this.setJMenuBar(mb);
		
	    this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setVisible(true);
	    
	}

}
